/*package test.nine;

import static util.Util.*;

import java.util.Arrays;

//import static java.util.*;
class Processor {
	public String name() {
		return getClass().getSimpleName();
	}

	Object process(Object input) {
		return input;
	}
}
class Upcase extends Processor {
	Object process(Object input) {
		return ((String)input).toUpperCase();
	}
}
class Downcase extends Processor {
	Object process(Object input) {
		return ((String)input).toLowerCase();
	}
}
class Spiltter extends Processor {
	Object process(Object input) {
		return Arrays.toString(((String)input).split(" "));
	}
}

public class Apply2 {
	public static void process(Processor p,Object s){
		print("Using Processor"+p.name());
		print(p.process(s));
	}
	
	public static String s="Disagreement with beliefs XXX";
	public static void main(String[] args) {
		process(new Upcase(), s);
		process(new Downcase(), s);
		process(new Spiltter(), s);
	}
}
*/